The best way, if possible, is to use server redirects, so send a 301 status code. This is easy to do via .htaccess files using Apache, or via numerous plugins ...
The content=”0; attribute in that meta tag specifies how many seconds to wait before redirecting the user. Since it is set to 0, the user would be directed ...
The objective of this technique is to enable redirects on the client side without confusing the user. Redirects are preferably implemented on the server side.
DOCTYPE html> <html> <body> <h2>Redirect to a Webpage</h2> <p>The replace() method replaces the current document with a new one:</p>